<?php

class Services {

    protected static function checkArguments($keys) {
        if(!is_array($keys))
            $keys = array($keys);
        $rval = true;
        foreach($keys as $key) {
            if(!(strlen($key) > 0)) {
                return false;
            }
        }

        return true;
    }
	
    protected static function check($result) {
        $ret = false;
        if(is_array($result)) {
            if(count($result) > 0) {
                $ret = true;
                foreach($result as $num) {
                    if($num < 0)
                        $ret = false;
                }
            }
        }
        return $ret;
    }	

 }

?>
